<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      //     1.对象
      //     1.1  创建对象
      var obj1 = new Object(); //创建一个空对象
      var obj2 = {}; //  简写方式
      var obj3 = {
        width: 60,
        height: 170

        // 添加赋值
      };
      obj1.age = 18;
    </script>
  </body>
</html>
